package com.example.gulimall.product.feign;

import com.example.common.utils.R;
import com.example.gulimall.product.feign.callback.SecKillFeignServiceCallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * <p>
 *
 * </p>
 *
 * @author zyred
 * @since v 0.1
 **/
@FeignClient(value = "gulimall-seckill", fallback = SecKillFeignServiceCallback.class)
public interface SecKillFeignService {


    @GetMapping("/sec/kill/skuInfo/{skuId}")
    R getSkuInfo (@PathVariable("skuId") Long skuId);


}
